package com.stgy.lease.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.stgy.lease.model.base.BaseDomain;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @TableName attr_value
 */
@TableName(value ="attr_value")
@Data
public class AttrValue extends BaseDomain implements Serializable {
    private String name;

//    @JsonSerialize(using = ToStringSerializer.class)
    private Long attrKeyId;

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    @Schema(description = "扩展属性：接收房间属性名称")
    private String attrKeyName;
}